update XBSchemaVersion.SchemaInstall set Status = @Status, StatusText = @StatusText where SchemaInstallId = @InstallId

if @@rowcount = 0
begin
	declare @GuidString varchar(26)
	set @GuidString = CAST(@InstallId AS VARCHAR(36))

	raiserror('Schema install %s was not found', 16, 1, @GuidString)
end